package com.zly.framework.rbac.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zly.framework.rbac.model.entity.UserRole;

import java.util.List;

public interface UserRoleService extends IService<UserRole> {
    /**
     * 删除sys_user_role 表中的userid
     *
     * @param userIds 用户ids
     */
    void deleteUserRoleByUserIds(List<Long> userIds);

    /**
     * 分配用户角色
     *
     * @param userIds userIds
     * @param roleIds roleIds
     */
    void grantUserRoleByUserIds(List<Long> userIds, List<Long> roleIds);
}
